.PHONY:all
all:server client

server:protubuf_server.cc request.pb.cc  ../include/muduo/protobuf/codec.cc
	g++ -o $@ $^ -std=c++11 -pthread -lprotobuf -lmuduo_net -lmuduo_base -I../../../mqthird/include -L../../../mqthird/lib -lz

client:protubuf_client.cc request.pb.cc  ../include/muduo/protobuf/codec.cc
	g++ -o $@ $^ -std=c++11 -pthread -lprotobuf -lmuduo_net -lmuduo_base -I../../../mqthird/include -L../../../mqthird/lib -lz

.PHONY:clean
clean:
	rm -rf server client